<script setup lang='ts'>
import { useRouter } from 'vue-router'
const router = useRouter()
const handleClick = () => {
  window.localStorage.setItem('token', '123')
  router.push('/')
}
</script>

<template>
  <div @click="handleClick">
    登录
  </div>
</template>

<style scoped lang=''>

</style>